Skip to content

fix(docker): set correct ownership on migration files to prevent permission denied#736

Open
teexiii wants to merge 1 commit intonextlevelbuilder:devfrom
teexiii:hotfix/Dockerfile
Open

fix(docker): set correct ownership on migration files to prevent permission denied#736
teexiii wants to merge 1 commit intonextlevelbuilder:devfrom
teexiii:hotfix/Dockerfile

Conversation

@teexiii
Copy link
Copy Markdown
Contributor

@teexiii teexiii commented Apr 7, 2026

Summary

Migration files were copied as root in the Docker image, causing permission denied when the goclaw user attempted to read them during auto-upgrade. Adds --chown=goclaw:goclaw to the migration COPY instruction.

Type

  • Feature
  • Bug fix
  • Hotfix (targeting main)
  • Refactor
  • Docs
  • CI/CD

Target Branch

dev

Checklist

  • go build ./... passes
  • No hardcoded secrets or credentials
  • N/A: Go code, tests, UI, locales, and migration version unchanged (Dockerfile-only change)

Test Plan

Rebuilt image and verified the container starts without permission denied on migration files. Confirmed ls -la /app/migrations/ shows goclaw:goclaw ownership.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant